﻿using System;
using System.Xml;
using System.Windows.Forms;

namespace HTF_HMI.HTF_HMI
{
    public class ConfigReader
    {
        public static String getDBString()
        {
            try
            {              
                //string connStr = "provider=SQLOLEDB;Data Source=.;Initial Catalog=FU;User Id=sa;Password=123";
                string connStr = System.Configuration.ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;                
                return connStr;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
                return null;
            }
        }
    }
}
